package com.ecut.property_project.service.contract;

import com.ecut.property_project.mapper.contract.ContractSuiteMapper;
import com.ecut.property_project.model.contract.ContractSuite;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ContractSuiteService{

    @Resource
    private ContractSuiteMapper contractSuiteMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return contractSuiteMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(ContractSuite record) {
        return contractSuiteMapper.insert(record);
    }

    
    public int insertSelective(ContractSuite record) {
        return contractSuiteMapper.insertSelective(record);
    }

    public List<ContractSuite> selectAll(){ return contractSuiteMapper.selectAll(); }

    public List<ContractSuite> selectByPage(Integer page, Integer pageSize){return contractSuiteMapper.selectByPage(page,pageSize);}

    public ContractSuite selectByPrimaryKey(Integer id) {
        return contractSuiteMapper.selectByPrimaryKey(id);
    }
    public List<ContractSuite> selectByHeadId(String headId){
        return contractSuiteMapper.selectByHeadId(headId);
    }

    
    public int updateByPrimaryKeySelective(ContractSuite record) {
        return contractSuiteMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ContractSuite record) {
        return contractSuiteMapper.updateByPrimaryKey(record);
    }

}
